package ar.edu.utn.frba.disenio.model;

public class Lugar {
	
	String codLanchita, codOceanic;
	
	public Lugar(String codigoParaLanchita, String codigoParaOceanic){
		codLanchita = codigoParaLanchita;
		codOceanic = codigoParaOceanic;
	}
	
	public String getCodigoLanchita(){
		return codLanchita;
	}
	
	public String getCodigoOceanic(){
		return codOceanic;
	}
	public boolean mismoLugar(Lugar otroLugar) {
		boolean oceanic = false;
		if (this.codOceanic == otroLugar.codOceanic & this.codOceanic != "")
			oceanic = true;
		
		boolean lanchita = false;
		if (this.codLanchita == otroLugar.codLanchita & this.codLanchita!= "")
			lanchita = true;
		return lanchita || oceanic;
		 
	}

}
